package com.qst.rongxiaotong.service;

import com.github.pagehelper.PageInfo;
import com.qst.rongxiaotong.pojo.Question;

import java.util.List;

public interface QuestionService {

    //增加问答
    void insert(Question question);

    //根据id查询问答
    Question selectById(Integer id);

    //查询所有问答信息
    PageInfo<Question> findPage(Integer pageNum);


    //分页条件查询问答
    PageInfo<Question> selectByKeys(String keys,Integer pageNum);

    //根据用户查询询问情况
    List<Question> selectByQuestion(String type);

    //根据Id修改问答
    void updateById(Question question);

    //根据Id删除问答
    void delete(Integer id);

}
